package com.ruoyi.system.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 就诊记录子对象 visit_record
 * 
 * @author ruoyi
 * @date 2025-07-05
 */
public class VisitRecord extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键ID */
    private Integer id;

    /** 关联预约ID */
    @Excel(name = "关联预约ID")
    private Integer appointmentId;

    /** 签到时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "签到时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date checkInTime;

    /** 诊断结果 */
    @Excel(name = "诊断结果")
    private String diagnosis;

    /** 状态(0:待就诊 1:就诊中 2:已完成) */
    @Excel(name = "状态(0:待就诊 1:就诊中 2:已完成)")
    private String status;

    public void setId(Integer id) 
    {
        this.id = id;
    }

    public Integer getId() 
    {
        return id;
    }
    public void setAppointmentId(Integer appointmentId) 
    {
        this.appointmentId = appointmentId;
    }

    public Integer getAppointmentId() 
    {
        return appointmentId;
    }
    public void setCheckInTime(Date checkInTime) 
    {
        this.checkInTime = checkInTime;
    }

    public Date getCheckInTime() 
    {
        return checkInTime;
    }
    public void setDiagnosis(String diagnosis) 
    {
        this.diagnosis = diagnosis;
    }

    public String getDiagnosis() 
    {
        return diagnosis;
    }
    public void setStatus(String status)
    {
        this.status = status;
    }

    public String getStatus()
    {
        return status;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("appointmentId", getAppointmentId())
            .append("checkInTime", getCheckInTime())
            .append("diagnosis", getDiagnosis())
            .append("status", getStatus())
            .append("createTime", getCreateTime())
            .toString();
    }
}
